package ycl.base.res;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import ycl.common.constants.BaseConstant;
import ycl.common.models.BaseEntityRes;


import java.time.LocalDateTime;

/**
 * <p>
 * 黑名单返回体
 * </p>
 *
 * @author ycl
 * @since 2022-06-22 20:06:25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("blacklist")
@ApiModel(value = "Blacklist对象", description = "黑名单返回体")
public class BlacklistRes extends BaseEntityRes {

	    
    private static final long serialVersionUID = 1L;

	@Schema(description = "用户id")
	private Long userId;

	@Schema(description = "原因")
	private String content;

	@Schema(description = "备注")
	private String remark;

	@Schema(description = "删除标志, 1存在, 0删除")
	private Boolean delFlag;

	@Schema(description = "创建时间")
	@JsonFormat(pattern = BaseConstant.DATE_TIME_PATTERN, timezone = BaseConstant.DATE_TIME_GMT8)
	private LocalDateTime createTime;

	@Schema(description = "创建用户id, 必须是管理员才能操作")
	private Long createUserId;

	@Schema(description = "结束时间")
	@JsonFormat(pattern = BaseConstant.DATE_TIME_PATTERN, timezone = BaseConstant.DATE_TIME_GMT8)
	private LocalDateTime endTime;

	@Schema(description = "永久封禁, 1是, 0否")
	private Boolean forever;


}
